{"ast":null,"code":"export var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {\n  var unitWidth = width / 2;\n  var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);\n  var ay = unitWidth;\n  var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));\n  var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));\n  var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));\n  var cy = innerRadius * (1 / Math.sqrt(2));\n  var dx = 4 * unitWidth - cx;\n  var dy = cy;\n  var ex = 4 * unitWidth - bx;\n  var ey = by;\n  var fx = 4 * unitWidth - ax;\n  var fy = ay;\n  return {\n    borderRadius: {\n      _skip_check_: true,\n      value: \"0 0 \".concat(innerRadius, \"px\")\n    },\n    pointerEvents: 'none',\n    width: width * 2,\n    height: width * 2,\n    overflow: 'hidden',\n    '&::after': {\n      content: '\"\"',\n      position: 'absolute',\n      width: width / Math.sqrt(2),\n      height: width / Math.sqrt(2),\n      bottom: 0,\n      insetInline: 0,\n      margin: 'auto',\n      borderRadius: {\n        _skip_check_: true,\n        value: \"0 0 \".concat(innerRadius, \"px 0\")\n      },\n      transform: 'translateY(50%) rotate(-135deg)',\n      boxShadow: boxShadow,\n      zIndex: 0,\n      background: 'transparent'\n    },\n    '&::before': {\n      position: 'absolute',\n      bottom: 0,\n      insetInlineStart: 0,\n      width: width * 2,\n      height: width / 2,\n      background: bgColor,\n      clipPath: \"path('M \".concat(ax, \" \").concat(ay, \" A \").concat(outerRadius, \" \").concat(outerRadius, \" 0 0 0 \").concat(bx, \" \").concat(by, \" L \").concat(cx, \" \").concat(cy, \" A \").concat(innerRadius, \" \").concat(innerRadius, \" 0 0 1 \").concat(dx, \" \").concat(dy, \" L \").concat(ex, \" \").concat(ey, \" A \").concat(outerRadius, \" \").concat(outerRadius, \" 0 0 0 \").concat(fx, \" \").concat(fy, \" Z')\"),\n      content: '\"\"'\n    }\n  };\n};","map":{"version":3,"names":["roundedArrow","width","innerRadius","outerRadius","bgColor","boxShadow","unitWidth","ax","Math","sqrt","ay","bx","by","cx","cy","dx","dy","ex","ey","fx","fy","borderRadius","_skip_check_","value","pointerEvents","height","overflow","content","position","bottom","insetInline","margin","transform","zIndex","background","insetInlineStart","clipPath"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/style/roundedArrow.js"],"sourcesContent":["export const roundedArrow = (width, innerRadius, outerRadius, bgColor, boxShadow) => {\n  const unitWidth = width / 2;\n  const ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);\n  const ay = unitWidth;\n  const bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));\n  const by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));\n  const cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));\n  const cy = innerRadius * (1 / Math.sqrt(2));\n  const dx = 4 * unitWidth - cx;\n  const dy = cy;\n  const ex = 4 * unitWidth - bx;\n  const ey = by;\n  const fx = 4 * unitWidth - ax;\n  const fy = ay;\n  return {\n    borderRadius: {\n      _skip_check_: true,\n      value: `0 0 ${innerRadius}px`\n    },\n    pointerEvents: 'none',\n    width: width * 2,\n    height: width * 2,\n    overflow: 'hidden',\n    '&::after': {\n      content: '\"\"',\n      position: 'absolute',\n      width: width / Math.sqrt(2),\n      height: width / Math.sqrt(2),\n      bottom: 0,\n      insetInline: 0,\n      margin: 'auto',\n      borderRadius: {\n        _skip_check_: true,\n        value: `0 0 ${innerRadius}px 0`\n      },\n      transform: 'translateY(50%) rotate(-135deg)',\n      boxShadow,\n      zIndex: 0,\n      background: 'transparent'\n    },\n    '&::before': {\n      position: 'absolute',\n      bottom: 0,\n      insetInlineStart: 0,\n      width: width * 2,\n      height: width / 2,\n      background: bgColor,\n      clipPath: `path('M ${ax} ${ay} A ${outerRadius} ${outerRadius} 0 0 0 ${bx} ${by} L ${cx} ${cy} A ${innerRadius} ${innerRadius} 0 0 1 ${dx} ${dy} L ${ex} ${ey} A ${outerRadius}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